#ifndef COMPUTATE_PANEL_H
#define COMPUTATE_PANEL_H

#include <QPushButton>
#include <QWidget>
#include <QSpinBox>
#include <QComboBox>
#include <QTableView>
#include <QStandardItemModel>

#include "double_spin_box_delegate.h"
#include "../src/system.h"

class QHBoxLayout;

class ComputatePanel : public QWidget{
	Q_OBJECT

	public:
		ComputatePanel(QWidget* = 0);
		~ComputatePanel();
		void setSystem(System*);
	
	private slots:
		void valueChanged(QModelIndex);
		void restart();

	private:
		System* system;
		QTableView *tableView;
		QStandardItemModel *model;
		DoubleSpinBoxDelegate *delegate;
		QPushButton *restartButton;
};

#endif
